import { axios } from '@/utils/request'

export function get (deptId) {
  return axios({
    url: '/admin/attendance/z-approval/setting/page',
    method: 'post',
    data: {
      deptId: deptId
    }
  })
}

export function edit (id) {
  return data =>
    axios({
      url: '/admin/attendance/z-approval/setting/edit/' + id,
      method: 'post',
      data
    })
}
export function del (id) {
  return axios({
    url: '/admin/attendance/z-approval/setting/remove/' + id,
    method: 'post'
  })
}

export function Report (data) {
  return axios({
    url: '/admin/timetable/salary/Report/',
    method: 'post',
    data: {
      departmentId: data.departmentId,
      month: data.month,
      year: data.year
    }
  })
}

export function RentReport (data) {
  return axios({
    url: '/admin/rent/salary/Report/',
    method: 'post',
    data: {
      departmentId: data.departmentId,
      month: data.month,
      year: data.year
    }
  })
}

export function RatingReport (data) {
  return axios({
    url: '/admin/rating/salary/report',
    method: 'post',
    data: {
      departmentId: data.departmentId,
      month: data.month,
      year: data.year
    }
  })
}
